<template>
  <div>
    <div class="weekend">
      <div class="title">
        <img class="title-img" src="http://img1.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png">
        <span>周末去哪儿</span>
      </div>
      <ul>
        <li class="item-weekend-li" v-for="item in weekendList" :key=item.id>
          <div class="item-weekend ">
            <div class="item-weekend-imgWrap">
              <img class="item-weekend-img"
                   :src=item.imgurl>
            </div>
            <div class="item-weekend-info">
              <p class="item-weekend-info-title">{{item.infotitle}}</p>
              <p class="item-weekend-info-content">{{item.infocontent}}</p>
            </div>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    name: "homeWeekend",
    props:{
      weekendList:Array
    },
    data() {
      return {

      }
    }
  }
</script>

<style lang="stylus" scoped>
  @import "~styles/mixins.styl"
  .weekend {
    .title {
      padding .2rem 0 .2rem
      height .44rem
      line-height .44rem
      color #212121
      font-size .32rem

      .title-img {
        margin-left .2rem
        margin-bottom .15rem
        height .3rem
        width .3rem
      }
    }

    .item-weekend-li {
      border-bottom:0.02rem solid #e0e0e0

      .item-weekend {
        padding .2rem 0


        .item-weekend-imgWrap {
          overflow hidden
          height 0
          padding-bottom 37.4375%
          .item-like-img {
            width 100%
          }
        }
        .item-weekend-info {
          flex 1
          min-width 0
          padding-left .22rem

          .item-weekend-info-title {
            margin-top .26rem
            height .44rem
            line-height .44rem
            font-size .28rem
            color #212121
            ellopsis()
          }

          .item-weekend-info-content {
            color #616161
            font-size .24rem
            padding-right 1.4rem

            margin-top .14rem
            ellopsis()
          }

        }
      }
    }
  }
</style>
